package us.curino.sql2cat.client;

import java.util.ArrayList;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("generateCategoryGraph")
public interface generateCategoryGraph extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static generateCategoryGraphAsync instance;
		public static generateCategoryGraphAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(generateCategoryGraph.class);
			}
			return instance;
		}
	}
	
	public CommuteContainer sendSQL(String sql);

	public CommuteContainer sendSchemaSQL(String text);
	
}
